package cn.zzuli.manager.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zzuli.common.utils.PageUtils;
import cn.zzuli.common.utils.Query;

import cn.zzuli.manager.dao.ItemUserDao;
import cn.zzuli.manager.entity.ItemUserEntity;
import cn.zzuli.manager.service.ItemUserService;


@Service("itemUserService")
public class ItemUserServiceImpl extends ServiceImpl<ItemUserDao, ItemUserEntity> implements ItemUserService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ItemUserEntity> page = this.page(
                new Query<ItemUserEntity>().getPage(params),
                new QueryWrapper<ItemUserEntity>()
        );

        return new PageUtils(page);
    }

}